<?php

namespace Database\Seeders;

use App\Models\User;
use Illuminate\Database\Seeder;

class UsersSeeder extends Seeder
{
    public function run()
    {
        User::factory()->count(10)->create();

        $user = User::find(1);
        $user->name = 'Jack';
        $user->email ='Jack@qq.com';
        $user->save();

        $user = User::find(2);
        $user->name = 'Tom';
        $user->email ='Tom@qq.com';
        $user->save();

        $user = User::find(3);
        $user->name = 'Rose';
        $user->email ='Rose@qq.com';
        $user->save();
    }
}
